/**
 *
 */
package com.googlecode.pkchat.pkclient;

import javax.swing.JOptionPane;

import com.apple.eawt.Application;
import com.apple.eawt.ApplicationAdapter;
import com.apple.eawt.ApplicationEvent;

/**
 * @author Simon Pratt
 *
 */
public class MacOSAboutHandler extends Application {

	AboutDialog myAbout = new AboutDialog();

	public MacOSAboutHandler() {
        addApplicationListener(new AboutBoxHandler());
    }

    class AboutBoxHandler extends ApplicationAdapter {
        public void handleAbout(ApplicationEvent event) {
        	event.setHandled(true);
			myAbout.setVisible(true);
        }
        public void handleQuit(ApplicationEvent event) {
        	System.exit(0);
        }
    }
}
